<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>后台登陆|银光云-为银光字幕组提供最优质的云存储服务 - Powered by 金鸡独立</title>
<%
	//读取cookie
	String user = new String();
	Cookie[] cookie=request.getCookies();
	if(cookie!=null){
		for(int i=0;i<cookie.length;i++){
			//out.println(cookie[i].getName()+" "+cookie[i].getValue()+"<br/>");
			if(cookie[i].getName().equals("SilverCouldUserName")){
				user=cookie[i].getValue();
				//out.println("找到！");
			}
		}
	}
	//out.println("user="+user);
%>
</head>
<body>
<%
    if(user.length()>0){
        response.sendRedirect("login.jsp");
    }
%>
<center><h1><font color="red">银光字幕组专属云服务后台管理系统-登录页面</font></h1>
<!-- 登陆系统 -->
输入你的登陆信息
<form action="login.jsp" method="post">
  <table border="1">
    <tr>
		<td>用户名：</td><td><input id="username" type="text" name="username"></td>
	</tr>
	<tr>
		<td>密码：</td><td><input id="password" type="password" name="password"></td>
	</tr>
	<tr>
		<td>cookie记录时间(以秒为单位)：</td><td><input type="text" id="time" name="time"></td>
	</tr>
	<tr>
		<td><input id="submit" type="submit" name="submit" value="登陆"></td>
		<td><input id="reset" type="reset" name="reset" value="取消"></td>
	</tr>
  </table>
</form>
</center>
</body>
</html>